package jnpf.service;


import jnpf.model.ragFlow.common.RagFlowApiResult;
import jnpf.model.ragFlow.talkMange.SessionCreateReq;
import jnpf.model.ragFlow.talkMange.SessionDeleteReq;
import jnpf.model.ragFlow.talkMange.SessionUpdateReq;

public interface RagTalkMangeService {
    /**
     * 创建会话
     */
    RagFlowApiResult createSession(String chatId, SessionCreateReq request) throws Exception;

    /**
     * 更新会话
     */
    RagFlowApiResult updateSession(String chatId, String sessionId, SessionUpdateReq request) throws Exception;

    /**
     * 删除会话
     */
    RagFlowApiResult deleteSessions(String chatId, SessionDeleteReq request) throws Exception;

    /**
     * 获取会话列表
     */
    RagFlowApiResult listSessions(String chatId, Integer page, Integer pageSize,
                                 String orderby, Boolean desc, String name, String id) throws Exception;
}
